package com.train.daily.api.fallback;

import com.train.common.enums.impl.SysExceptionEnums;
import com.train.common.resp.CommonResp;
import com.train.daily.api.DailyTrainCarriageApi;
import com.train.daily.dto.carriage.DailyTrainCarriageQueryListDTO;
import org.springframework.stereotype.Component;

@Component
public class DailyTrainCarriageApiFallback implements DailyTrainCarriageApi {
    
    @Override
    public CommonResp queryTrainCarriageList(DailyTrainCarriageQueryListDTO dto) {
        return CommonResp.error(SysExceptionEnums.EXP_DEGRADE);
    }
}
